Download Files

Related example macros: Demo-FileDownload, Demo-ImageDownload

Internet Macros automatically detects and intercepts download. The iOpus Downloader takes over and completes the download. Since the iOpus Downloader creates a second connection to the web server, it can fail on certain "tricky" web pages that do not allow a direct connection. In this case the "iOpus Popup Manager" takes over and completes the download.

Normally the download file name is created automatically and consists of the download date, time and up to 30 characters of the web page title or file name (Example: "20020922_121511_iimfeatures.htm "). If you want to use a specific name for your download, you can set it with "SET !DFILE myfilename.htm" .This overrides the automatic file name generation.

Tip: You can configure if or if not the iOpus Downloader intercepts a download.

Example:

SET !DEXT EXE*ZIP*MP3

Now the downloader only downloads files with an "exe", "zip" or "mp3" extensions.

Tip 1: The download directory can be changed with the "SET !DDIR c:\myfolder\" command.

Tip 2: If you want to download images or similar elements, please read here.




Tech Tip (Advanced): You can edit the default settings for the Downloader by changing the list directly in the "iim.ini" file:

(1) Stop & close iOpus Internet Macros (IIM)

(2) Locate "iim.ini". This file is typically located in "C:\Documents and Settings\\Application Data\iOpus-I-M".

[Note: Since this is a system directory, it is "hidden" by default. Note: In most file managers (e.g. the Microsoft Windows Explorer) you need to enable the "display hidden / system files" option (or similar function) in order to see this directory. In the MS Explorer this option is located at View > Folder Options > View Tab > Go to the "Hidden Files" option and select "Show all"]


(3) Open "iim.ini" with a text editor (e. g. notepad. exe) and change the following line

DownloadFileTypes=EXE*ZIP*PDF*XLS*DOC*RTF*AVI*WAV*MP3

to

DownloadFileTypes=EXE*ZIP*MP3

(4) Save the changes

(5) Restart IIM for the new settings to take effect.